package com.example.micrtask;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableDubbo
@SpringBootApplication
@EnableScheduling
public class MicrTaskApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(MicrTaskApplication.class, args);
        TaskManager taskManager = applicationContext.getBean("taskManager", TaskManager.class);
//        taskManager.invokeGenerateIncomePlan();
//        taskManager.invokeGenerateIncomeBack();
        taskManager.invokeQueryKQ();
    }

}
